package com.it.travel.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.it.travel.dto.PermissionDTO;
import com.it.travel.pojo.Permission;
import com.it.travel.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper extends BaseMapper<User> {

    //        PermissionDTO queryPermissionIdByParentIdAndUserName(@Param("username") String username);
    List<PermissionDTO> queryPermissionIdByParentIdAndUserName(@Param("username") String username);

    String queryRoleNameByUserName(@Param("username") String username);


    List<Permission> queryPermissionListByRoleId(@Param("roleId") Integer roleId);

    List<Permission> queryPermissionListByUserName(@Param("username") String username);
}
